GetId

Function

This API is used to get added faces id.

Request Message

Parameter Description

Table 1

ParameterRangeTypeDescription
MsgIdnull
GrpId[2, 3, 7, 8, 9, 10, 11, 12, 13, 16, 17, 18, 19, 20, 21]int arrayThe group that needs to get the face ID.

Sample:

POST API/AI/AddedFaces/GetId HTTP/1.1
{
	"version": "1.0",
	"data": {
		"MsgId": "",
		"GrpId": [2, 3, 7, 8, 9, 10, 11, 12, 13, 16, 17, 18, 19, 20, 21]
	}
}

Response Message

Table 2

ParameterRangeTypeDescription
MsgIdnull
Result0intGet the results of all face Ids in a given group according to group Id, seeTable 3
CountintFace Id count in group
FaceIds[1,3,4,5,6,7,9,10,11,12,13,14,15,16,23,25]int arrayEach digit represents the unique identifier of a face in the group, which can be used to obtain all information about the face

Table 3

Result TypeCOMMENT
AORT_SUCCESS = 0Success
AORT_NO_DB = -1No database
AORT_DB_EXEC_FAILED = -2Database execution failed
AORT_CALC_FEATURE_FAILED = -3Feature extraction failed
AORT_CANCELED = -4Cancelled
AORT_NO_DISK = -5No hard drive
AORT_DISK_ERROR = -6Hard disk error
AORT_EXIST = -7Existed
AORT_GROUP_INVALID = -8Group invalid
AORT_NOT_EXIST = -9Does not exist
AORT_MORE_FILE_EXIST = -10File already exists
AORT_SEARCH_ERROR = -11Search error
AORT_OVER_MAX_COUNT = -12Limit exceeded
AORT_UPDATING_FEATURE = -13Updating feature values
AORT_NO_USABLE_IPC = -14No IPC available for eigenvalue calculation
AORT_INVALID_PARAM = -15Invalid parameter
AORT_INVALID_FORMAT = -16Wrong format
AORT_INVALID_RES = -17Wrong resolution
AORT_INVALID_MEM = -18File too large error
AORT_CREAT_FAILED = -19Creation failed
AORT_MD5_NOT_MATCH = -20MD5 mismatch
AORT_POS_ERROR = -21Location error
AORT_SIZE_ERROR = -22Wrong size
AORT_NOT_READY = -23Not ready
AORT_INVALID_DB = -24Invalid database

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
{
	"data": {
		"MsgId": "",
		"Result": 0,
		"Count": 16,
		"FaceIds": [
			1,
			3,
			4,
			5,
			6,
			7,
			9,
			10,
			11,
			12,
			13,
			14,
			15,
			16,
			23,
			25
		]
	}
}

Error Code

See Response Messages Body and Common error_code for more information.